import App from './App'
import uView from 'uview-ui'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import store from "@/store/store.js"
// Vue.prototype.$_ = _ ;
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
Vue.use(uView)
// 如此配置即可
uni.$u.config.unit = 'rpx'
// 引入请求封装，将app参数传递到配置中
require('@/request/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
